package com.frogs.ucenter.v1.request;

import javax.servlet.http.HttpServletRequest;

import com.frogs.framework.web.HttpRequestInfo;
import com.frogs.system.util.ApiUrlParamEnum;
import com.frogs.system.util.IntegralExchangeColumnEnum;
import com.frogs.system.util.IntegralExchangeTargetEnum;
import com.frogs.system.util.UserAccountInfoStatusEnum;
import com.frogs.system.web.api.request.Request;

public class IntegralExchangeRequest extends Request {

	private Integer type;
	
	private Integer isVip;
	
	private Integer pageNo;
	
	private Integer pageSize;
	
	private Integer columnId;
	
	public IntegralExchangeRequest() {
	}
	
	@Override
	public void parse(HttpServletRequest request) {
		HttpRequestInfo requestInfo = new HttpRequestInfo(request);
		this.type = requestInfo.getIntParameter(ApiUrlParamEnum.type.getParamName(), IntegralExchangeTargetEnum.COUPON.getId());
		this.pageNo = requestInfo.getIntParameter(ApiUrlParamEnum.pageNo.getParamName(), 1);
		this.pageSize = requestInfo.getIntParameter(ApiUrlParamEnum.pageSize.getParamName(), 10);
		this.isVip = requestInfo.getIntParameter(ApiUrlParamEnum.isVip.getParamName(), UserAccountInfoStatusEnum.VIP_NO.getId());
		this.columnId = requestInfo.getIntParameter(ApiUrlParamEnum.sectionCode.getParamName(), IntegralExchangeColumnEnum.VIP.getId());
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getIsVip() {
		return isVip;
	}

	public void setIsVip(Integer isVip) {
		this.isVip = isVip;
	}

	public Integer getColumnId() {
		return columnId;
	}

	public void setColumnId(Integer columnId) {
		this.columnId = columnId;
	}

	
}
